package cn.edu.zhku.citrusmonitor.announcement.service;

import java.sql.SQLException;
import java.util.List;

import cn.edu.zhku.citrusmonitor.domain.TbAnnouncement;
import cn.edu.zhku.citrusmonitor.util.PageBean;


public interface AnnouncementService {
	//添加公告
	public int addAnnounce(TbAnnouncement announce) throws SQLException;
	
	//删除公告
	public int removeAnnounce(String announcement_id) throws SQLException;
	
	//修改公告
	public int modifyAnnounce(TbAnnouncement announce) throws SQLException;
	
	//根据关键字查找公告
	public List<TbAnnouncement> findAnByWord(String content) throws SQLException;
	
	public List<TbAnnouncement> showAnnounce(int pageSize) throws SQLException;

	public TbAnnouncement showAnById(String announcementId) throws SQLException;

	public PageBean<TbAnnouncement> showAll(int currentPage, int pageSize) throws SQLException;

	public int delAll(String[] ids) throws SQLException;
}
